<?php
namespace  service\login;


class scAction {
    /**
     * @desc 发送短信验证码
     * @param $params
     * @return array
     * @author zhaozhiwei
     * @date 2021-02-04 13:06
     */
    public static function main($params){

        //发送短信验证码
        $code='123456';
        //存储验证码
       (new \cache\Redis())->set('login:login_code' . $params['mobile'],$code,180*5);
        //生成token
        return \Output2::success();
    }

}